﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AIFSContentManagementSystem.DomainObjects
{
    public sealed class StringCriterionExpression : CriterionExpression
    {
        public override string DataType
        {
            get
            {
                return "STRING";
            }
        }

        protected override bool CanCompare(CriterionExpression other)
        {
            if (!(other is StringCriterionExpression))
                return false;

            return true;
        }

        protected override int CompareTo(CriterionExpression other)
        {
            int cmpResult = this.RightOperand.CompareTo(other.RightOperand);
            return cmpResult;
        }
    }
}
